package com.villaday.idf.model3;

import java.util.List;

public class HashStates {


    /**
     * action : integer, 房态操作, 1:关房，2:设置房态
     * dates : ["string, 日期，格式：yyyy-MM-dd"]
     * startDate : string, 开始日期，格式：yyyy-MM-dd
     * endDate : string, 结束日期，格式：yyyy-MM-dd
     * usedQuantity : integer, 已售数，设置房态时必须
     * totalQuantity : integer, 总数，设置房态时必须
     */

    private int action;
    private List<String> dates;
    private String startDate;
    private String endDate;
    private int usedQuantity;
    private int totalQuantity;


    public int getAction() {
        return action;
    }

    public void setAction(int action) {
        this.action = action;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public int getUsedQuantity() {
        return usedQuantity;
    }

    public void setUsedQuantity(int usedQuantity) {
        this.usedQuantity = usedQuantity;
    }

    public int getTotalQuantity() {
        return totalQuantity;
    }

    public void setTotalQuantity(int totalQuantity) {
        this.totalQuantity = totalQuantity;
    }

    public List<String> getDates() {
        return dates;
    }

    public void setDates(List<String> dates) {
        this.dates = dates;
    }


    @Override
    public String toString() {
        return "{" +
                "\"action\":" + action +
                ", \"dates\":" + dates +
                ", \"startDate\":\"" + startDate + '\'' +
                ", \"endDate\":\"" + endDate + '\'' +
                ", \"usedQuantity\":" + usedQuantity +
                ", \"totalQuantity\":" + totalQuantity +
                '}';
    }
}
